import request from '@/utils/request'

// 查询自定义专家列表
export function listExpertcustomgroupexpert(query) {
  return request({
    url: '/system/expertcustomgroupexpert/list',
    method: 'get',
    params: query
  })
}

// 查询自定义专家详细
export function getExpertcustomgroupexpert(id) {
  return request({
    url: '/system/expertcustomgroupexpert/' + id,
    method: 'get'
  })
}

// 新增自定义专家
export function addExpertcustomgroupexpert(data) {
  return request({
    url: '/system/expertcustomgroupexpert',
    method: 'post',
    data: data
  })
}

// 批量添加自定义专家
export function batchaddExpertcustomgroupexpert(data) {
  return request({
    url: '/system/expertcustomgroupexpert/batchadd',
    method: 'post',
    data: data
  })
}

// 修改自定义专家
export function updateExpertcustomgroupexpert(data) {
  return request({
    url: '/system/expertcustomgroupexpert',
    method: 'put',
    data: data
  })
}

// 删除自定义专家
export function delExpertcustomgroupexpert(id) {
  return request({
    url: '/system/expertcustomgroupexpert/' + id,
    method: 'delete'
  })
}
